﻿#include "CmdThreeDCloudMapSidebarCurveNameClicked.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdThreeDCloudMapSidebarCurveNameClicked::CmdThreeDCloudMapSidebarCurveNameClicked()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdThreeDCloudMapSidebarCurveNameClicked::~CmdThreeDCloudMapSidebarCurveNameClicked()
    {
    }

    bool CmdThreeDCloudMapSidebarCurveNameClicked::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_threeDCloudMapSidebarCurveNameClicked(m_windowId, m_selectedIndexes);
        return true;
    }

    void CmdThreeDCloudMapSidebarCurveNameClicked::undo()
    {
    }

    void CmdThreeDCloudMapSidebarCurveNameClicked::redo()
    {
        // execute();
    }

    void CmdThreeDCloudMapSidebarCurveNameClicked::setThreeDCloudMapSidebarCurveNameClicked(int windowId, QList<int> selectedIndexes)
    {
        m_windowId = windowId;
        m_selectedIndexes = selectedIndexes;
    }

} // namespace PostCommand
